package com.insane.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.insane.web.common.Page;
import com.insane.web.service.UserService;

@Controller
@RequestMapping("demo")
public class DemoController {
	
	@Autowired
	private UserService userService;
	
	@ResponseBody
	@RequestMapping("demoList")
	public Page demoList(Page page){
		userService.getByPage(page);
		return page;
	}

}
